<template>
    <div class="good-container">
        <h3 >{{goodinfo.title}}</h3>        
        <hr>
        <div v-html="goodinfo.content"></div>
    </div>
</template>

<script>
export default {
    data(){
        return {
            id:this.$route.params.id,
            goodinfo:{title:"华为荣耀6plus，16G双4G版",content:"的反思的洛夫克拉的三分拿到手开发了你是都是负能量撒旦开发了繁琐的罗斯福的那块乐山大佛你看了萨迪卡诺法律"}
        }
    },
    created(){
        this.getimgtext()
    },
    methods:{
        getimgtext(){
            this.$http.get("api/goods/getdesc"+this.id).then(result=>{
                if(result.body.status===0){
                    this.goodinfo=result.body.message[0]
                }
            })
        }
    }
}
</script>

<style lang="scss" scoped>
    .good-container{
        padding: 0 5px;
        h3{
            font-size: 16px;
            text-align: center;
            color: red;
            padding: 7px 0px 4px 0px;
        }
    }
</style>
